package org.lgiavedoni.android.franq.httpserver;

import java.util.Map;

import org.apache.velocity.VelocityContext;
import org.lgiavedoni.android.franq.core.httpserver.HttpPageController;
import org.lgiavedoni.android.franq.core.position.dao.PositionDAO;

public class PositionsPage extends HttpPageController {

	@Override
	public String getPath() {
		return "positions.html";
	}

	@Override
	public VelocityContext actionDefault(VelocityContext context) {
		context.put("positionsList", PositionDAO.inst.getAll());
		return context;

	}

	@Override
	public String getTemplateName(Map<String, String> params) {
		return "positions.html";
	}

}
